package java8;

import java.util.Scanner;

public class Code109 {
	public static void main(String[] args) {
		int[] nums=new int[5];
		int[] newnums=new int[5];
		System.out.println("请输入去年五位会员的积分");
		Scanner input=new Scanner(System.in);
		for (int i = 0; i < nums.length; i++) {
			System.out.println("第"+(i+1)+"位会员的积分是");
			nums[i]=input.nextInt();		
		}
		for (int i = 0; i < newnums.length; i++) {
			newnums[i]=nums[i]+500;	
		}
		System.out.println("\n序号\t\t去年\t\t今年");
		for (int i = 0; i < newnums.length; i++) {
			System.out.println("\n"+(i+1)+"\t\t"+nums[i]+"\t\t"+newnums[i]);	
		}
	}
}
